package com.ssy.lingxi.pay.api.dto.request.aliPay;

import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Positive;
import javax.validation.constraints.Size;
import java.io.Serializable;

/**
 * 支付宝支付-查询订单
 * @author lqa
 * @version 2.0.0
 * @date 2021/11/2
 */
@Data
public class AliPayOrderQueryRequest implements Serializable {
    private static final long serialVersionUID = -3565141589226974398L;

    /**
     * 会员id(收款方)
     */
    @NotNull(message = "会员id要大于0")
    @Positive(message = "会员id要大于0")
    private Long memberId;

    /**
     * 会员角色id(收款方)
     */
    @NotNull(message = "角色id要大于0")
    @Positive(message = "角色id要大于0")
    private Long memberRoleId;

    /**
     * 支付宝交易号
     */
    @Size(max = 64, message = "支付宝订单号最长32个字符")
    private String transactionId;

    /**
     * 商户订单号
     */
    @Size(max = 64, message = "商户订单号最长32个字符")
    private String outTradeNo;

    /**
     * 商户订单号
     */
    @Size(max = 16, message = "收单机构pid最长16个字符")
    private String orgPid;



    /**
     * 支付类型: 1-平台; 2-会员; (非必填，空值会根据资金归集模式)
     */
    private Integer payType;
}
